@extends('layouts.web')

@section('title', $col->name.' - 目录标签 - '.env('APP_NAME'))
@section('keywords', $col->name.','.$col->name.'网站,'.$col->name.'目录,'.$col->name.'分类,'.$col->name.'目录标签')
@section('description', $col->name.'目录标签（www.6nww.com）免费送您网站流量，是中小网站和新网站推广首选网络推广服务平台。同时分类目录网为大家提供国内外网址大全，整理和收藏网站大全导航，您也可以在我们的免费发布自己的网站及网站相关信息！')

@section('content')
    <div class="main-container">
        @inject('gotos', 'App\Models\GotoList')
        @if($goto = $gotos->where('position',10)->first())
            <div class="banner-img margin-bottom-15">
                <div id="index-banner-00">
                    <a href="{{ url('/goto/'.$goto->name) }}/" title="{{ $goto->title }}" rel="nofollow" target="_blank">
                        <img src="{{ env('IMG_URL') }}/{{ $goto->img }}" alt="{{ $goto->title }}">
                    </a>
                </div>
            </div>
        @endif
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">{{ $col->name }}排行榜</div>
                    <div class="layui-card-body site-list-body">
                        @if(isset($sites))
                            <div class="search-list clearfix">
                                @foreach($sites as $v)
                                    <div class="listContent">
                                        <div class="siteImg">
                                            <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">
                                                <img class="load" alt="{{ $v->name }}" src="{{ env('IMG_URL') }}/files/loading.gif" lay-src="{{ hostStr('shot/'.$v->url.'.jpg') }}">
                                            </a>
                                        </div>
                                        <h3 class="title">
                                            <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ $v->name }}</a>
                                            <em>{{ $v->created_at }}</em>
                                        </h3>
                                        <p class="description layui-hide-xs">{{ $v->description }}</p>
                                    </div>
                                @endforeach
                            </div>
                            {{ $sites->links('vendor.pagination.default', ['data' => $sites]) }}
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection


